package thread;

class Point {
    // public Point(double x,double y){

    // }
    // public Point(double r,double a){

    // }
}

//用来构造Point对象，也可以称为“工厂类”
class PointBuilder{
    public static Point builPointByXY(double x, double y){
        Point p = new Point();
        //针对p进行初始化
        return p;
    }
    public static Point buildPointByRA(double r,double a){
        Point p = new Point();
        //针对p进行初始化
        return p;
    }
}
public class demo33 {
    public static void main(String[] args) {
        Point p = PointBuilder.builPointByXY(10,20);
    }
}
